<template>
  <div>
    <el-table :data="tableData" v-loading="loading" border style="width: 100%">
      <el-table-column prop="id" label="用户ID" align="center">
      </el-table-column>
      <el-table-column prop="userId" label="所属班级" align="center">
      </el-table-column>
      <el-table-column prop="title" label="作业名称" align="center">
      </el-table-column>
      <el-table-column prop="completed_text" label="完成情况" align="center">
      </el-table-column>
    </el-table>
   <Pagination :total="total" :url="url"></Pagination>
  </div>
</template>
<script>
import Pagination from '@/components/common/Pagination.vue'
export default {
    components:{
        Pagination
    },
  data() {
    return {
      tableData: [],
      total: 0, //总条数
      loading: true,
      url:'/works'
    };
  },
};
</script>
<style lang="less" scoped>
div {
  text-align: center;
}
</style>